import http from '../http'
export default{   
    orderDetail(orderId,params,callback){           //查询订单详情
        http.get(`/order/query/detail/${orderId}`,params,callback)
    },
    addComment(params,callback){           //添加评论
        http.post('/order/comment/data',params,callback)
    },
    commentDesc(groupCode,params,callback){           //评论标签字典表接口
        http.get(`/dict/listByGroupCode?groupCode=${groupCode}`,params,callback)
    },
    deleteOrder(orderId,params,callback){           //删除订单
        http.get(`/order/operate/delete?orderId=${orderId}`,params,callback)
    },
    acceptOrder(orderId,params,callback){           //陪玩接单
        http.get(`/order/operate/accept?orderId=${orderId}`,{params},callback)
    },
    cancelOrder(orderId,params,callback){           //取消订单
        http.get(`/order/operate/cancel?orderId=${orderId}`,params,callback)
    },
    complainOrder(params,callback){           //投诉订单
        http.post('/order/operate/complain',params,callback)
    },
    indexOrderList(page,size,params,callback){           //查询订单列表
        http.post(`/order/query/list?page=${page}&size=${size}`,params,callback)
    },     
}